package com.yidu.hbats.dao;

import com.yidu.hbats.model.AtsPlanCurriculum;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsPlanCurriculumMapper {
    /**
     * 修改是否有效
     * @param atsPlanCurriculum
     * @return
     */
    int updateIsva(AtsPlanCurriculum atsPlanCurriculum);
    /**
     * 查询所有
     * @return
     */
    List<AtsPlanCurriculum> findCoach(AtsPlanCurriculum atsPlanCurriculum);
    List<AtsPlanCurriculum> findAthlete(AtsPlanCurriculum atsPlanCurriculum);
    List<AtsPlanCurriculum> selectAll(AtsPlanCurriculum atsPlanCurriculum);
    /**
     * 分页
     * @return
     */
    int countAll(AtsPlanCurriculum atsPlanCurriculum);
    int countCoach(AtsPlanCurriculum atsPlanCurriculum);
    int countAthlete(AtsPlanCurriculum atsPlanCurriculum);

    /**
     * id查询
     * @param curriculumId
     * @return
     */
    AtsPlanCurriculum findById(Integer curriculumId);
    AtsPlanCurriculum findByIdTwo(Integer curriculumId);
    AtsPlanCurriculum findMaxPid(int coachId);
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer curriculumId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsPlanCurriculum record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsPlanCurriculum record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsPlanCurriculum selectByPrimaryKey(Integer curriculumId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsPlanCurriculum record);
}